<case value="database_list">
<php>
$database_map_json=json_encode($[type]form['options']);

 
</php>

<div class="input-group" style=" width: 50%;">
<input type="text" placeholder="请输入数据库id/数据库名称" class="form-control input text" name="database_keyword" id="database_keyword" value="" {$[type]form.extra_attr}>
<span class="input-group-btn" style="float:left;">
<a class="btn btn-default" href="javascript:change_database_keyword();">
<i class="fa fa-search"></i>
</a>
</span> 
</div>
<br/> 
<select name="{$[type]form.name}" id="database_list_sel" class="form-control select"> 
	
</select>  

<script type="text/javascript">
$(function(){
	change_database_list_sel();
}); 
function change_database_keyword(){
	var database_keyword=$("#database_keyword").val();
	change_database_list_sel(database_keyword);
}
function change_database_list_sel(database_keyword){
	var  databaseid= "{$[type]form.value}";
 
	var database_map_json={$database_map_json};
	$.getJSON("index.php?s=/Api/Ajax/get_databaselist_sel_js",{database_keyword:database_keyword,database_map_json:database_map_json,databaseid:databaseid},function(json){
        $("#database_list_sel").html(json);
    });
}
 
</script>
   
</case>